home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / mardek_rpg.swf / scripts / frame_46 / DoAction.as
Text File  |  2011-09-19  |  8KB  |  188 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 2659 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = -162 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 358)
  9.    {
  10.       set("\x01",eval("\x01") - 340);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 718)
  14.    {
  15.       set("\x01",eval("\x01") + 178);
  16.    }
  17.    else if(eval("\x01") == 209)
  18.    {
  19.       set("\x01",eval("\x01") + 97);
  20.       ┬º┬ºpush("\x0f");
  21.    }
  22.    else if(eval("\x01") == 113)
  23.    {
  24.       set("\x01",eval("\x01") + 351);
  25.    }
  26.    else if(eval("\x01") == 937)
  27.    {
  28.       set("\x01",eval("\x01") - 240);
  29.       ┬º┬ºpush(!function ┬º\x01\x02┬º()
  30.       {
  31.          return 2659 % 511 * 5;
  32.       });
  33.    }
  34.    else if(eval("\x01") == 896)
  35.    {
  36.       set("\x01",eval("\x01") - 433);
  37.       ┬º┬ºpush("\x0f");
  38.       ┬º┬ºpush(1);
  39.    }
  40.    else if(eval("\x01") == 463)
  41.    {
  42.       set("\x01",eval("\x01") - 254);
  43.       var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  44.       {
  45.          return 2659 % 511 * 5;
  46.       };
  47.    }
  48.    else if(eval("\x01") == 697)
  49.    {
  50.       set("\x01",eval("\x01") - 584);
  51.       if(function ┬º\x01\x02┬º()
  52.       {
  53.          return 2659 % 511 * 5;
  54.       })
  55.       {
  56.          set("\x01",eval("\x01") + 351);
  57.       }
  58.    }
  59.    else if(eval("\x01") == 306)
  60.    {
  61.       set("\x01",eval("\x01") + 631);
  62.       ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  63.       {
  64.          return 2659 % 511 * 5;
  65.       }));
  66.    }
  67.    else if(eval("\x01") == 4)
  68.    {
  69.       set("\x01",eval("\x01") + 892);
  70.    }
  71.    else
  72.    {
  73.       if(eval("\x01") == 464)
  74.       {
  75.          set("\x01",eval("\x01") + 278);
  76.          map = [[1,1,1,1,1,2,2,2,1,1,1,1,1],[1,1,1,1,2,7,6,8,2,1,1,1,1],[1,1,1,2,12,7,6,8,12,2,1,1,1],[1,1,1,12,0,7,6,8,0,12,1,1,1],[2,4,2,0,0,7,6,8,0,0,2,4,2],[3,3,3,5,5,9,11,10,5,5,3,3,3],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,13,0,0,0,7,6,8,0,0,0,13,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,13,0,0,0,7,6,8,0,0,0,13,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[1,1,1,0,0,7,6,8,0,0,1,1,1],[1,1,1,1,0,7,6,8,0,1,1,1,1],[1,1,1,1,1,7,6,8,1,1,1,1,1],[1,1,1,1,1,7,6,8,1,1,1,1,1],[1,1,1,1,1,7,6,8,1,1,1,1,1]];
  77.          tileset = "t_castle";
  78.          area = "gc_ThroneRoom";
  79.          areaname = "Castle Goznor - Throne Room";
  80.          ambience = null;
  81.          A_sprites = [{name:"Throne",model:"s_object",x:6,y:3,type:"throne",conv:[["","It\'s a throne. Exciting."]]},{name:"Rosencrantz",model:"s_soldier",x:4,y:3,walkspeed:-1,dir:"s",elem:"LIGHT",conv:[["","..."]]},{name:"Guildenstern",model:"s_soldier",x:8,y:3,walkspeed:-1,dir:"s",elem:"LIGHT",conv:[["","..."]]},{name:"King",model:"s_king",x:6,y:3,walkspeed:-2,dir:"s",elem:"FIRE",conv:"c_king"},{name:"Crystal Room",model:"DOOR10",x:6,y:0,lock:"magic",dest:["gc_CrystalRoom",1,1]},{name:"King\'s Room",model:"DOOR10",x:1,y:5,lock:"lock",dest:["gc_KingsRoom",8,1]},{name:"Room",model:"DOOR10",x:11,y:5,lock:"lock",dest:["gc_QueensRoom",8,1]},{name:"EXIT",model:"DOOR10",x:6,y:20,dest:["gc_hall",10,1]}];
  82.          if(plotVars.BRIEFING == 4)
  83.          {
  84.             A_sprites.push({name:"WALK_TRIGGER",model:"_trigger",x:6,y:10,ExecuteScript:function()
  85.             {
  86.                if(_root.plotVars.walkedIntoKing1 == null)
  87.                {
  88.                   _root.plotVars.walkedIntoKing1 = 1;
  89.                   DO_ACTIONS([["WALK",0,-3],["UNFREEZE"]],"PC",true);
  90.                   DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Deugan",true);
  91.                   DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Emela",true);
  92.                   DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Sharla",true);
  93.                   DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Donovan",true);
  94.                }
  95.             }});
  96.             A_sprites.push({name:"INTERJECTION",model:"_trigger",x:6,y:7,ExecuteScript:function()
  97.             {
  98.                _root.Interjection("Mardek","Briefing4","c_king");
  99.             }});
  100.             A_sprites.push({name:"Jacques",model:"s_captain",x:5,y:3,walkspeed:-1,dir:"s",elem:"AIR",conv:"c_jacques"});
  101.             A_sprites.push({name:"Emela",model:"s_emela_soldier",x:4,y:10,walkspeed:-1,dir:"n",elem:"WATER",conv:[["shok","ERROR!"]]});
  102.             A_sprites.push({name:"Deugan",model:"s_deugan_soldier",x:5,y:10,walkspeed:-1,dir:"n",elem:"EARTH",conv:[["shok","ERROR!"]]});
  103.             A_sprites.push({name:"Donovan",model:"s_donovan_soldier",x:7,y:10,walkspeed:-1,dir:"n",elem:"FIRE",conv:[["shok","ERROR!"]]});
  104.             A_sprites.push({name:"Sharla",model:"s_sharla_soldier",x:8,y:10,walkspeed:-1,dir:"n",elem:"AIR",conv:[["shok","ERROR!"]]});
  105.          }
  106.          if(plotVars.MORIC_BEATEN == 2 || plotVars.MORIC_BEATEN == 99)
  107.          {
  108.             A_sprites.push({name:"WALK_TRIGGER",model:"_trigger",x:6,y:10,ExecuteScript:function()
  109.             {
  110.                if(_root.plotVars.walkedIntoKing2 == null)
  111.                {
  112.                   _root.plotVars.walkedIntoKing2 = 1;
  113.                   DO_ACTIONS([["WALK",0,-3],["UNFREEZE"],["TALK","n","c_king"]],"PC",true);
  114.                   DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Deugan",true);
  115.                   DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Emela",true);
  116.                   DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Zach",true);
  117.                   DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Vehrn",true);
  118.                }
  119.             }});
  120.             if(plotVars.MORIC_BEATEN == 2)
  121.             {
  122.                A_sprites.push({name:"INTERJECTION",model:"_trigger",x:6,y:7,ExecuteScript:function()
  123.                {
  124.                   _root.Interjection("Mardek","Briefing_AfterMoric1K1","c_king");
  125.                }});
  126.             }
  127.             else
  128.             {
  129.                A_sprites.push({name:"INTERJECTION",model:"_trigger",x:6,y:7,ExecuteScript:function()
  130.                {
  131.                   _root.Interjection("Mardek","Briefing_AfterMoric1K2","c_king");
  132.                }});
  133.             }
  134.             A_sprites.push({name:"Jacques",model:"s_captain",x:5,y:3,walkspeed:-1,dir:"s",elem:"AIR",conv:"c_jacques"});
  135.             A_sprites.push({name:"Emela",model:"s_emela_soldier",x:7,y:10,walkspeed:-1,dir:"n",elem:"WATER",conv:[["shok","ERROR!"]]});
  136.             if(plotVars.MORIC_BEATEN != 99)
  137.             {
  138.                A_sprites.push({name:"Deugan",model:"s_deugan_soldier",x:5,y:10,walkspeed:-1,dir:"n",elem:"EARTH",conv:[["shok","ERROR!"]]});
  139.             }
  140.             if(plotVars.Allies.Vehrn != null)
  141.             {
  142.                A_sprites.push({name:"Vehrn",model:"s_vehrn",x:(plotVars.MORIC_BEATEN == 99 ? 5 : 4),y:10,walkspeed:-1,dir:"n",elem:"LIGHT",conv:[["shok","ERROR!"]]});
  143.             }
  144.             if(plotVars.Allies.Zach != null)
  145.             {
  146.                A_sprites.push({name:"Zach",model:"s_zach",x:8,y:10,walkspeed:-1,dir:"n",elem:"AIR",conv:[["shok","ERROR!"]]});
  147.             }
  148.          }
  149.          areaLoot = [];
  150.          foes = [];
  151.          btlChance = 0;
  152.          minSteps = 5;
  153.          levelrange = [1,1];
  154.          musicTrack = "Castle";
  155.          clearmap = 1;
  156.          AreaSetup();
  157.          break;
  158.       }
  159.       if(eval("\x01") == 742)
  160.       {
  161.          set("\x01",eval("\x01") - 742);
  162.          break;
  163.       }
  164.       if(eval("\x01") != 18)
  165.       {
  166.          if(eval("\x01") == 994)
  167.          {
  168.             set("\x01",eval("\x01") - 990);
  169.             var ┬º┬ºpop() instanceof new ┬º┬ºpop()[function ┬º\x01\x02┬º()
  170.             {
  171.                return 2659 % 511 * 5;
  172.             }]();
  173.             ┬º┬ºpush(new ┬º┬ºpop()[┬º┬ºpop() instanceof ┬º┬ºpop()]());
  174.             break;
  175.          }
  176.          break;
  177.       }
  178.       set("\x01",eval("\x01") + 976);
  179.       if(function ┬º\x01\x02┬º()
  180.       {
  181.          return 2659 % 511 * 5;
  182.       })
  183.       {
  184.          set("\x01",eval("\x01") - 990);
  185.       }
  186.    }
  187. }
  188.